package ma.ac.onousc.gestionfi.EngagementPaiement.model;

import java.io.Serializable;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

@Entity
@NamedQuery(name = "BonCommande.findByRB", query = "select bc from BonCommande bc where bc.rubriqueBudgetaire=:rb")
@DiscriminatorValue("Bon2Commande")
public class BonCommande extends Engagement implements Serializable {

	private static final long serialVersionUID = 1L;

	@OneToMany(mappedBy = "bonCommande")
	private List<Devis> devis;

	public BonCommande() {
		super();
	}


	public List<Devis> getDevis() {
		return devis;
	}

	public void setDevis(List<Devis> devis) {
		this.devis = devis;
	}

}
